package com.qidian.mes.sys.controller;

import com.qidian.mes.sys.service.EncodingRulesService;
import com.qidian.mes.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Description
 * @Time 2024/4/7 11:09
 */
@RestController
@CrossOrigin
@RequestMapping("/rules")
public class EncodingRulesController {
    @Autowired
    private EncodingRulesService encodingRulesService;

    @GetMapping("/query")
    public QdResult query(String rulesName){
        return encodingRulesService.query(rulesName);
    };
}
